package com.backup.information;

/**
 * 用于存放 json 类型数据
 * @author 司啸飞
 * @create 2021-05-16 18:40
 */
public class MyConstant {
    public String mid;
    private static final String FOLLOWER_URL_TOP = "https://api.bilibili.com/x/relation/stat?vmid=";
    private static final String FOLLOWER_URL_AFTER = "&jsonp=jsonp";
    private static final String NAME_URL = "http://api.bilibili.com/x/space/acc/info?mid=";

    /**
     * 获取粉丝数、关注数、UID
     * @param mid
     * @return
     */
    public static String getFollowerAPIUrl(String mid){
        return FOLLOWER_URL_TOP + mid + FOLLOWER_URL_AFTER;
    }

    /**
     * 获取UP名字、个人简介
     * @param mid
     * @return
     */
    public static String getNameAPIUrl(String mid){
        return NAME_URL+mid;
    }
}
